package com.common.retrofit.methods;

import com.common.retrofit.base.BaseMethods;
import com.common.retrofit.service.HaiNingService;

import rx.Observable;
import rx.Subscriber;

public class DeleteCommonListMethods extends BaseMethods {

    private static DeleteCommonListMethods m_ins = null;

    public static DeleteCommonListMethods getInstance() {
        if (m_ins == null) {
            synchronized (DeleteCommonListMethods.class) {
                if (m_ins == null) {
                    m_ins = new DeleteCommonListMethods();
                }
            }
        }
        return m_ins;
    }

    @Override
    protected String getHttpUrl() {
        return "useList/";
    }

    private HaiNingService initService() {
        return getRetrofit().create(HaiNingService.class);
    }


    public void carDel(Subscriber<Object> subscriber,
                      int uid ,
                      String hashid  ,String cid  ) {
        Observable observable = initService().listDel(System.currentTimeMillis()+"",
                "bac191510b7e07c17d5dfa01f0b1633e",uid,hashid,cid
        );
        toSubscribe(observable, subscriber);
    }
}
